package com.sciencep.pro.admin.system.service;

import com.sciencep.pro.common.domain.ResponseResult;
import com.sciencep.pro.common.exception.CustomException;
import com.sciencep.pro.core.domain.dto.user.UserDetail;
import com.sciencep.pro.core.domain.entity.Account;
import com.taobao.api.ApiException;

public interface LoginService {


    UserDetail login(String userId) throws CustomException;

    ResponseResult<Object> getUserByCode(String code) throws ApiException, CustomException;

    ResponseResult<Object> getAccount(Account account) throws CustomException;

    ResponseResult<Object> getUserByCode1(String code) throws ApiException, CustomException;
}
